package com.znsd.zl.sys.emp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.znsd.zl.sys.emp.entity.EmpEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName EmpDao
 * @Description 描述
 * @author xyx
 * @date 2020-08-20 21:10:50
 * @Version v1.0
 */
@Mapper
public interface EmpDao extends BaseMapper<EmpEntity> {

	/**
	 * 按员工姓名模糊查询
	 * @param empName
	 * @return
	 */
	@Select("SELECT * FROM t_emp WHERE emp_name LIKE '#{empName}%' ")
	List<EmpEntity> findByName(String empName);

}
